package com.yamanyar.weebill.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yamanyar.weebill.dao.ActionPathElementDAO;
import com.yamanyar.weebill.domain.ActionPathElement;
import com.yamanyar.weebill.service.ActionPathElementService;
/**
 * Implementation of <code>ActionPathElementService</code> interface.
 * Created in Jun 28, 2008.
 * @see ActionPathElementService
 * @author Kaan Yamanyar
 */
@Service
public class ActionPathElementServiceImpl implements ActionPathElementService {

	private ActionPathElementDAO actionPathElementDAO;

	@Autowired
	public ActionPathElementServiceImpl(
			ActionPathElementDAO actionPathElementDAO) {
		this.actionPathElementDAO = actionPathElementDAO;
	}

	public void createNew(ActionPathElement actionPathElement) {
		actionPathElementDAO.persist(actionPathElement);
	}

	public List<ActionPathElement> findAll() {
		return actionPathElementDAO.loadAll();
	}

}
